from flask import Flask
from blueprints import view_bp
import os
#获取路径
cwd =os.path.join(os.getcwd())
#windows需要替换
new_cwd=cwd.replace("\\","/")
#拼接路径
static_folder="{}/{}".format(new_cwd,'static')

app = Flask(__name__,static_folder=static_folder)

app.register_blueprint(view_bp)
@app.route('/')
def hello_world():  # put application's code here
    return 'Hello World!'


if __name__ == '__main__':
    app.run()
